package at.jku.pervasive.gui.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import at.jku.pervasive.gui.View3DPanel;

public class ResetViewAction extends AbstractAction
{

	private final View3DPanel view3dPanel;

	public ResetViewAction(View3DPanel view3dPanel)
	{
		super();

		this.view3dPanel = view3dPanel;

		putValue(NAME, "Reset view");
	}

	public void actionPerformed(ActionEvent e)
	{
		view3dPanel.resetView();
	}

}
